home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6054 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.1 KB  |  60 lines

  1. Newsgroups: comp.lang.c++
  2. Path: dish.news.pipex.net!pipex!bt!btcase!Pearl
  3. From: muthu@mbtpost.agw.bt.co.uk (Muthu Kumar)
  4. Subject: Re: Q: Creating OLE Custom Control Enumerated Property, how?
  5. Message-ID: <4fk9gf$9u_001@agw.bt.co.uk>
  6. Sender: news@btcase.bt.co.uk (USENET News System)
  7. Organization: MBT
  8. X-Newsreader: News Xpress Version 1.0 Beta #4
  9. References: <4fj7uj$umi@dot.cstone.net>
  10. Date: Sun, 11 Feb 1996 08:31:11 GMT
  11.  
  12. In article <4fj7uj$umi@dot.cstone.net>, scottv@cstone.net (Scott) wrote:
  13. >Path: 
  14. btcase!bt!btnet!news.uk0.vbc.net!knews.uk0.vbc.net!news.vbc.net!news2.net99.ne
  15. t!news.cais.net!ringer.cs.utsa.edu!swrinde!newsfeed.internetmci.com!in2.uu.net
  16. !news.cstone.net!usenet
  17. >From: scottv@cstone.net (Scott)
  18. >Newsgroups: comp.lang.c++
  19. >Subject: Q: Creating OLE Custom Control Enumerated Property, how?
  20. >Date: 10 Feb 1996 22:58:27 GMT
  21. >Organization: Cornerstone Networks - Pure Internet!
  22. >Lines: 15
  23. >Message-ID: <4fj7uj$umi@dot.cstone.net>
  24. >NNTP-Posting-Host: dialin8.cstone.net
  25. >Mime-Version: 1.0
  26. >X-Newsreader: WinVN 0.99.7
  27. >Status: N
  28. >
  29. >    I've been creating an OLE custom control in VC++ 4.0 and have run 
  30. >into a snag.  I want to create a property that has an enumerated value list 
  31. >like that of the BorderStyle property.  Languages like VB 4.0 show the 
  32. >enumerated values in a combo box to select from in design time.
  33. >    I've used OnGetDisplayString to override the property as an integer 
  34. >to display "1 - Example" in the property list, but I want to enumerate the 
  35. >values and override the display.  Anyone know how to do this - I would think 
  36. >this should be fairly simple, but I've missed it in the documentation or 
  37. >misunderstood it.
  38. >    Please email me direct if possible; scottv@cstone.net - THANKS!!!
  39. >
  40. >            Thanks,
  41. >            N. Scott Vann
  42. >            Software Developer
  43. >
  44.     
  45.  
  46. Look at enprop.exe in Microsoft's FTP Site ( softlib/mslfiles/enprop.exe)
  47.  
  48. Hope this helps!
  49.  
  50. =~=~=~=~=~=~=~=~=~=~==~=~=~=~=~=~=~=~=
  51. K. Muthu Kumar
  52. 14 Shreeji Apartments,
  53. Kondi Vitta Village,
  54. Bombay - 59.
  55. INDIA.
  56. Ph: (O) +91-22-836 78 42
  57.     (R) +91-22-839 08 21
  58. Internet: muthu@mbtpost.agw.bt.co.uk
  59. =~=~=~=~=~=~=~=~=~=~==~=~=~=~=~=~=~=~=
  60.